package br.com.ravi.utils;

public class StringUtils {
	public static String removeNull(String toRemove) {
		if (toRemove == null) {
			return "";
		}
		
		return toRemove.trim();
	}

	public static String concat(String...strings) {
		if (strings == null) {
			return "";
		}
		
		StringBuilder result = new StringBuilder();
		for (String str : strings) {
			if (str != null) {
				String curr = removeNull(str);
				result.append(curr);
			}
		}
		return result.toString();
	}
}